<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TAppConf类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="class_t_app_conf-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">TAppConf类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a5d4986a464b4bc150904f93bc7978629" id="r_a5d4986a464b4bc150904f93bc7978629"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5d4986a464b4bc150904f93bc7978629">Save</a> ()</td></tr>
<tr class="separator:a5d4986a464b4bc150904f93bc7978629"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4ab1ef740b0682c1174b7954559f741" id="r_ab4ab1ef740b0682c1174b7954559f741"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab4ab1ef740b0682c1174b7954559f741">Reload</a> ()</td></tr>
<tr class="separator:ab4ab1ef740b0682c1174b7954559f741"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace206860d1fe86e5b7f1cd2b2cec6f3e" id="r_ace206860d1fe86e5b7f1cd2b2cec6f3e"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ace206860d1fe86e5b7f1cd2b2cec6f3e">Deinit</a> ()</td></tr>
<tr class="separator:ace206860d1fe86e5b7f1cd2b2cec6f3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f20e13b745f93c0178ea80208b913c9" id="r_a1f20e13b745f93c0178ea80208b913c9"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1f20e13b745f93c0178ea80208b913c9">Exist</a> (const char *key)</td></tr>
<tr class="separator:a1f20e13b745f93c0178ea80208b913c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a0ed59fe3fbc0e6d9923212ed0987e3" id="r_a6a0ed59fe3fbc0e6d9923212ed0987e3"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6a0ed59fe3fbc0e6d9923212ed0987e3">SetInt</a> (const char *key, int32_t v)</td></tr>
<tr class="separator:a6a0ed59fe3fbc0e6d9923212ed0987e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8954e7cc11e522819c9751182de5eab" id="r_ad8954e7cc11e522819c9751182de5eab"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad8954e7cc11e522819c9751182de5eab">SetInt64</a> (const char *key, int64_t v)</td></tr>
<tr class="separator:ad8954e7cc11e522819c9751182de5eab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae39a4c8ba12e7bf22ff45cbdff20838e" id="r_ae39a4c8ba12e7bf22ff45cbdff20838e"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae39a4c8ba12e7bf22ff45cbdff20838e">SetBool</a> (const char *key, bool v)</td></tr>
<tr class="separator:ae39a4c8ba12e7bf22ff45cbdff20838e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee3283a4295aab543056124174c18a94" id="r_aee3283a4295aab543056124174c18a94"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aee3283a4295aab543056124174c18a94">SetDouble</a> (const char *key, double v)</td></tr>
<tr class="separator:aee3283a4295aab543056124174c18a94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3794299c60f759c98e2006421e113a28" id="r_a3794299c60f759c98e2006421e113a28"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3794299c60f759c98e2006421e113a28">SetStr</a> (const char *key, const char *v)</td></tr>
<tr class="separator:a3794299c60f759c98e2006421e113a28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a226b748b904dcab7cf934e4186e5507e" id="r_a226b748b904dcab7cf934e4186e5507e"><td class="memItemLeft" align="right" valign="top">static int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a226b748b904dcab7cf934e4186e5507e">GetInt</a> (const char *key, int32_t defval)</td></tr>
<tr class="separator:a226b748b904dcab7cf934e4186e5507e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a095657d247978e29b66762d7582653df" id="r_a095657d247978e29b66762d7582653df"><td class="memItemLeft" align="right" valign="top">static int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a095657d247978e29b66762d7582653df">GetInt64</a> (const char *key, int64_t defval)</td></tr>
<tr class="separator:a095657d247978e29b66762d7582653df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c35555ba3e9d762865bc57636455ba1" id="r_a5c35555ba3e9d762865bc57636455ba1"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5c35555ba3e9d762865bc57636455ba1">GetBool</a> (const char *key, bool defval)</td></tr>
<tr class="separator:a5c35555ba3e9d762865bc57636455ba1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6d2cb3024ff56428006c14b00435180" id="r_ae6d2cb3024ff56428006c14b00435180"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae6d2cb3024ff56428006c14b00435180">GetDouble</a> (const char *key, double defval)</td></tr>
<tr class="separator:ae6d2cb3024ff56428006c14b00435180"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9392ee896338653440183456dde8171b" id="r_a9392ee896338653440183456dde8171b"><td class="memItemLeft" align="right" valign="top">static const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9392ee896338653440183456dde8171b">GetStr</a> (const char *key, const char *defval)</td></tr>
<tr class="separator:a9392ee896338653440183456dde8171b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a505248383e6db37cd17cc72a75a2708a" id="r_a505248383e6db37cd17cc72a75a2708a"><td class="memItemLeft" align="right" valign="top">static ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a505248383e6db37cd17cc72a75a2708a">Remove</a> (const char *key)</td></tr>
<tr class="separator:a505248383e6db37cd17cc72a75a2708a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>应用程序的配置信息。</p>
<p>底层实现可以是任何格式，比如INI，XML，JSON和UBJSON。</p>
<p>对于树状的文档，key可以是多级的，用.分隔。如network.ip。</p>
<p>conf-io是可选组件，需要自己包含头文件，否则64位数据类型会被截断成32位的数据。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="ace206860d1fe86e5b7f1cd2b2cec6f3e" name="ace206860d1fe86e5b7f1cd2b2cec6f3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace206860d1fe86e5b7f1cd2b2cec6f3e">&#9670;&#160;</a></span>Deinit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TAppConf::Deinit </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>释放conf对象。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a1f20e13b745f93c0178ea80208b913c9" name="a1f20e13b745f93c0178ea80208b913c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f20e13b745f93c0178ea80208b913c9">&#9670;&#160;</a></span>Exist()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TAppConf::Exist </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>key</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>检查配置项是否存在。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>配置项的名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回TRUE表示存在，FALSE表示不存在。 </dd></dl>

</div>
</div>
<a id="a5c35555ba3e9d762865bc57636455ba1" name="a5c35555ba3e9d762865bc57636455ba1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c35555ba3e9d762865bc57636455ba1">&#9670;&#160;</a></span>GetBool()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool TAppConf::GetBool </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>key</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>defval</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取bool类型配置项的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>配置项的名称。 </td></tr>
    <tr><td class="paramname">defval</td><td>缺省值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回配置项的值（如果不存在返回缺省值）。 </dd></dl>

</div>
</div>
<a id="ae6d2cb3024ff56428006c14b00435180" name="ae6d2cb3024ff56428006c14b00435180"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6d2cb3024ff56428006c14b00435180">&#9670;&#160;</a></span>GetDouble()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double TAppConf::GetDouble </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>key</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double</td>          <td class="paramname"><span class="paramname"><em>defval</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取单精度浮点数类型配置项的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>配置项的名称。 </td></tr>
    <tr><td class="paramname">defval</td><td>缺省值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回配置项的值（如果不存在返回缺省值）。 </dd></dl>

</div>
</div>
<a id="a226b748b904dcab7cf934e4186e5507e" name="a226b748b904dcab7cf934e4186e5507e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a226b748b904dcab7cf934e4186e5507e">&#9670;&#160;</a></span>GetInt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int32_t TAppConf::GetInt </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>key</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t</td>          <td class="paramname"><span class="paramname"><em>defval</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取整数类型配置项的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>配置项的名称。 </td></tr>
    <tr><td class="paramname">defval</td><td>缺省值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回配置项的值（如果不存在返回缺省值）。 </dd></dl>

</div>
</div>
<a id="a095657d247978e29b66762d7582653df" name="a095657d247978e29b66762d7582653df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a095657d247978e29b66762d7582653df">&#9670;&#160;</a></span>GetInt64()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int64_t TAppConf::GetInt64 </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>key</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int64_t</td>          <td class="paramname"><span class="paramname"><em>defval</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取64位整数类型配置项的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>配置项的名称。 </td></tr>
    <tr><td class="paramname">defval</td><td>缺省值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回配置项的值（如果不存在返回缺省值）。 </dd></dl>

</div>
</div>
<a id="a9392ee896338653440183456dde8171b" name="a9392ee896338653440183456dde8171b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9392ee896338653440183456dde8171b">&#9670;&#160;</a></span>GetStr()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char * TAppConf::GetStr </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>key</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>defval</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取字符串类型配置项的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>配置项的名称。 </td></tr>
    <tr><td class="paramname">defval</td><td>缺省值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回配置项的值（如果不存在返回缺省值）。 </dd></dl>

</div>
</div>
<a id="ab4ab1ef740b0682c1174b7954559f741" name="ab4ab1ef740b0682c1174b7954559f741"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4ab1ef740b0682c1174b7954559f741">&#9670;&#160;</a></span>Reload()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TAppConf::Reload </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>重新加载配置(内存中的配置丢失)。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a505248383e6db37cd17cc72a75a2708a" name="a505248383e6db37cd17cc72a75a2708a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a505248383e6db37cd17cc72a75a2708a">&#9670;&#160;</a></span>Remove()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TAppConf::Remove </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>key</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>删除配置项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>配置项的名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a5d4986a464b4bc150904f93bc7978629" name="a5d4986a464b4bc150904f93bc7978629"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d4986a464b4bc150904f93bc7978629">&#9670;&#160;</a></span>Save()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TAppConf::Save </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>持久保存配置。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae39a4c8ba12e7bf22ff45cbdff20838e" name="ae39a4c8ba12e7bf22ff45cbdff20838e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae39a4c8ba12e7bf22ff45cbdff20838e">&#9670;&#160;</a></span>SetBool()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TAppConf::SetBool </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>key</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>v</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置bool类型配置项的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>配置项的名称。 </td></tr>
    <tr><td class="paramname">v</td><td>配置项的值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aee3283a4295aab543056124174c18a94" name="aee3283a4295aab543056124174c18a94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee3283a4295aab543056124174c18a94">&#9670;&#160;</a></span>SetDouble()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TAppConf::SetDouble </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>key</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double</td>          <td class="paramname"><span class="paramname"><em>v</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置双精度类型配置项的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>配置项的名称。 </td></tr>
    <tr><td class="paramname">v</td><td>配置项的值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a6a0ed59fe3fbc0e6d9923212ed0987e3" name="a6a0ed59fe3fbc0e6d9923212ed0987e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a0ed59fe3fbc0e6d9923212ed0987e3">&#9670;&#160;</a></span>SetInt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TAppConf::SetInt </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>key</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t</td>          <td class="paramname"><span class="paramname"><em>v</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置整数类型配置项的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>配置项的名称。 </td></tr>
    <tr><td class="paramname">v</td><td>配置项的值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad8954e7cc11e522819c9751182de5eab" name="ad8954e7cc11e522819c9751182de5eab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8954e7cc11e522819c9751182de5eab">&#9670;&#160;</a></span>SetInt64()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TAppConf::SetInt64 </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>key</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int64_t</td>          <td class="paramname"><span class="paramname"><em>v</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置64位整数类型配置项的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>配置项的名称。 </td></tr>
    <tr><td class="paramname">v</td><td>配置项的值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3794299c60f759c98e2006421e113a28" name="a3794299c60f759c98e2006421e113a28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3794299c60f759c98e2006421e113a28">&#9670;&#160;</a></span>SetStr()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TAppConf::SetStr </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>key</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>v</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel static">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置字符串类型配置项的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>配置项的名称。 </td></tr>
    <tr><td class="paramname">v</td><td>配置项的值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/<b>awtk_cpp.cpp</b></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2
</small></address>
</div><!-- doc-content -->
</body>
</html>
